package FinalExam;

/**
 * @Author 28021
 * @Date 2022/12/27
 */
class Animal1{
    int m =100;
    public int setM(){
        return m;
    }
}
class Dog1 extends Animal1{
    int m=6;
    public int setM(){
        return m;
    }
}
public class p {
    public static void main(String[] args) {
        Animal1 d = new Dog1();
        System.out.printf("%d:%d",d.setM(),d.m);
    }
}
